import { createPublicKey} from 'crypto'
import {hash} from 'blake3'

export PK = Buffer.from("MCowBQYDK2VwAyEAAmK2IJtAxlK/WDu6SL+kwKGpwUoqM3VY3SrK/c11gE0=",'base64')



# console.log createPublicKey({
#   key:PK
#   format: 'der'
#   type: 'spki'
# }).export {
#   format: 'der'
#   type: 'spki'
# }
# import { generateKeyPairSync, createPublicKey} from 'crypto'
#
# do =>
#   {publicKey, privateKey} = generateKeyPairSync(
#     'ed25519'
#     publicKeyEncoding: {
#       type: 'spki'
#       format: 'der'
#     }
#     privateKeyEncoding: {
#       type: 'pkcs8'
#       format: 'der'
#     }
#   )
#   console.log privateKey
#   console.log publicKey
#   console.log createPublicKey({
#     key: privateKey
#     format: 'der'
#     type: 'pkcs8'
#   }).export {
#     type: 'spki'
#     format: 'der'
#   }
# # import BASE64 from 'urlsafe-base64'
# # console.log(BASE64.decode("mLgAHxWorslISItmL0ITs7vds2oPiCPXeMh7fNu6m08"))
#
